<script setup>
import {ref} from "vue";
import Person from "@/functions/Person.vue";
//  用于存储ref标记的内容
const country = ref()
// 获取组件实例,可以获取组件暴露的数据
const person = ref()
// 获取子组件的数据
const a = person.value.a
</script>

<template>
  <h1 ref="country">中国</h1>
  <Person ref="person"/>
</template>

<style scoped>

</style>